<!DOCTYPE html>
<html>
	<head>

		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		<title>后台 - 控制开奖</title>
		<meta name="keywords" content="">
		<meta name="description" content="">

		<link rel="shortcut icon" href="favicon.ico">
		<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">
		<link href="__PUBLIC__/Admin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
		<link href="__PUBLIC__/Admin/css/plugins/iCheck/custom.css" rel="stylesheet">
		<link href="__PUBLIC__/Admin/css/style.min862f.css?v=4.1.0" rel="stylesheet">

	</head>
	<style>
		/*分页样式*/
		.pages a,.pages span {
		    display:inline-block;
		    padding:4px 7px;
		    margin:0 2px;
		    border:1px solid #D5D4D4;
		    -webkit-border-radius:1px;
		    -moz-border-radius:1px;
		    border-radius:1px;
		}
		.pages a,.pages li {
		    display:inline-block;
		    list-style: none;
		    text-decoration:none; color:#3399ff;
		}
		
		.pages a:hover{
		    border-color:#3399ff;
		}
		.pages span.current{
		    background:#3399ff;
		    color:#FFF;
		    font-weight:700;
		    border-color:#3399ff;
		}
		.pages{
			text-align: center;
		}
		/*分页样式*/
		
		.layui-layer{
			top:48px !important;
		}
	</style>
	<body class="gray-bg">
		<div class="wrapper wrapper-content animated fadeInRight">	
			<div class="row">
				<div class="col-sm-12">
					<div class="ibox float-e-margins">
						<div class="ibox-title">
							<h5>控制开奖</h5>
								<span>&nbsp;&nbsp;(添加控制号码，则该期开此号码，取最新添加的号码，请在开奖前设置好，如果不添加，则自动采集全国开奖数据。<font color="red">期号和号码请保持和本系统数据采集里面的格式一致</font> )</span>
						</div>
						<div class="ibox-content">
							<div class="row">
								<form method="get" action="{:U('Admin/Index/kongzhi_action')}">
									<div class="col-sm-3">
										<div class="input-group">
										<span class="input-group-btn"><h5>选择类型：</h5></span>
										<select class="form-control" name="game">
											<option value="bj28"  <if condition="$game eq 'bj28'">selected</if> >{:C('lang_bj28')}</option>
											<option value="jnd28"  <if condition="$game eq 'jnd28'">selected</if> >{:C('lang_jnd28')}</option>
											
										</select>
									</div>
									</div>

									<div class="col-sm-2">
										<div class="input-group">
										<span class="input-group-btn"><h5>期数：</h5></span>
										<input type="text"  placeholder="942374" name="periodnumber" class="input-sm form-control"> <span class="input-group-btn">
										</div>
									</div>


									<div class="col-sm-4">
										<div class="input-group">
										<span class="input-group-btn"><h5>开奖号码：</h5></span>
										<input type="text"  placeholder="1,2,3,4,5,6,7,8,9,0" name="awardnumbers" class="input-sm form-control"> <span class="input-group-btn">
										</div>
									</div>
									<button type="submit" class="btn btn-sm btn-primary"> 添加 </button> </span>
								</form>
							</div>
							<div style="margin-top: 10px; margin-bottom: 10px;">
								<a href="{:U('Admin/Index/kongzhi_actionbj28')}" class="btn btn-sm btn-warning"> 北京28 生成多期 </a> 
								<a href="{:U('Admin/Index/kongzhi_actionbj28xz')}" class="btn btn-sm btn-warning"> 北京28 数据下载 </a> 

								<a href="{:U('Admin/Index/kongzhi_actionjnd28')}" class="btn btn-sm btn-success"> 加拿大28 生成多期 </a> 
								<a href="{:U('Admin/Index/kongzhi_actionjnd28xz')}" class="btn btn-sm btn-success"> 加拿大28 数据下载 </a> 

							</div>
							<div class="" >
								<table class="table table-striped table-hover table-bordered" style="width:auto;overflow:auto;display:inline-block;">
									<thead>
										<tr>
											<th>类型</th>
											<th>期号</th>
											<th>开奖号码</th>
											<th>添加时间</th>
										</tr>
									</thead>
									<tbody>
										<volist name="list" id="vo">
											<tr>
												<td width="120" style="text-align: center;">
													<if condition="$vo.game eq 'bj28'">{:C('lang_bj28')}</if>
													<if condition="$vo.game eq 'jnd28'">{:C('lang_jnd28')}</if>
												</td>
												<td width="200">{$vo.periodnumber}</td>
												<td width="300">{$vo.awardnumbers}</td>
												<td width="200">{$vo.addtime|date="Y-m-d H:i:s",###}</td>
											</tr>
										</volist>
									</tbody>
								</table>
							</div>
							<div class="pages">
								{$show}
							</div>
						</div>
					</div>
				</div>

			</div>
		</div>
			<script src="__PUBLIC__/Admin/js/jquery.min.js?v=2.1.4"></script>
		<script src="__PUBLIC__/Admin/js/bootstrap.min.js?v=3.3.6"></script>
		<script src="__PUBLIC__/Admin/js/plugins/iCheck/icheck.min.js"></script>
		<script src="__PUBLIC__/Admin/js/plugins/layer/laydate/laydate.js"></script>
		<script src="__PUBLIC__/Common/layer/layer.js"></script>
		<script>
			laydate({
			  elem: '#time',
			  max: laydate.now(-1), //+1代表明天，+2代表后天，以此类推
			});
		</script>
		<script>
			$(document).ready(function() {
				$(".i-checks").iCheck({
					checkboxClass: "icheckbox_square-green",
					radioClass: "iradio_square-green",
				})
			});
		</script>
		<script>
			function integral(id){
				layer.open({
			      	type: 2,
			      	title: '会员上分',
			      	shadeClose: true,
			      	shade: false,
			     	maxmin: true, //开启最大化最小化按钮
			      	area: ['300px', '500px'],
			      	content: "__APP__/Admin/Integral/index/id/" + id + ""
			    });
			}
			function under(id){
				layer.open({
			      	type: 2,
			      	title: '会员下分',
			      	shadeClose: true,
			      	shade: false,
			     	maxmin: true, //开启最大化最小化按钮
			      	area: ['300px', '500px'],
			      	content: "__APP__/Admin/Integral/under/id/" + id + ""
			    });
			}
				function edit(id){
				layer.open({
			      	type: 2,
			      	title: '编辑',
			      	shadeClose: true,
			      	shade: false,
			     	maxmin: true, //开启最大化最小化按钮
			      	area: ['600px', '500px'],
			      	content: "__APP__/Admin/Member/edit/id/" + id + ""
			    });
			}
			function disable(id){
				layer.confirm('确定要禁用吗？禁用后将不能登录。', {
				  	btn: ['确定','取消'] //按钮
				}, function(){
				  	window.location.href="__APP__/Admin/Member/disable/id/" + id + ""
				});
			}
			function endisable(id){
				layer.confirm('确定要启用吗？', {
				  	btn: ['确定','取消'] //按钮
				}, function(){
				  	window.location.href="__APP__/Admin/Member/endisable/id/" + id + ""
				});
			}
		</script>
	</body>

	
</html>